package com.swq.java.code.chapter09.code17;

public class WithRuntimeEx {
    public int divide(int a, int b) {
        if (b == 0) throw new IllegalArgumentException("除数不能为0");
        return a / b;
    }

    public static void main(String args[]) {
        new WithRuntimeEx().divide(1, 0);
        System.out.println("End");
    }
}